id/email
password
forgot password
|
create account
about
|
help
|
prefs
ReadingBat
code reading practice
Java
Python
Kotlin
Lambda Intro
→
NoArgLambda1
fun constVal(): Int { return 5 } fun funcNoArg1(i: Int): Int = i * constVal() fun main() { println(funcNoArg1(5)) println(funcNoArg1(10)) println(funcNoArg1(20)) }
Click on
to run the code
⬅ Back